<?php
	
	require("libraries/PaymentLib.php");
	session_start();
	if(isset($_GET['mode'])){
		if($_GET['mode']=='check'){
		echo "PAY CEHCK".Pay($_SESSION['sample_key'],'CHECK', $_GET['check_number'], 
				$_GET['bank'], $_GET['official_receipt_num'], 'casl', 'localhost', 'createaccount', 'createaccount', 'payment');
		echo ">";
		}else{
		 echo "PAY CEHCK".Pay($_SESSION['sample_key'], 'CASH', '', 
				'', $_GET['official_receipt_num'], 'casl', 'localhost', 'createaccount', 'createaccount', 'payment');
			echo ">";
		}
	}
	


?>